<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
 
<html> 
	<head>
		<title>User login Page</title>
	</head>
	<body>
		<%String errorMessage=(String)request.getAttribute("errorMessage");%>
	  	<% if (errorMessage != null) {%>
	  		<font color=red><%=errorMessage %></font>
	  	<% }%>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			
			<tr>
				<td valign="top" width="45%">
					I already have an account:
				</td>
				<td valign="top" width="45%">
					I do not have an account:
				</td>
			</tr>
			<tr>
					<td valign="top" width="45%">
						<html:form action="/userLogin">
							userName : <html:text property="userName"/><html:errors property="userName"/><br/>
							password : <html:password property="password"/><html:errors property="password"/><br/>
							<html:submit value="Sign In"/>
						</html:form>
					</td>
					<td valign="top" width="45%">
						<a href="/top10example/userSignup.jsp">sign up</a>
					</td>
			</tr>
		</table>
	</body>
</html>

